//Page Object
Page({
    data: {
        index_text : "data-text",
        obj : {
            username : 'zhangsan',
            password : 'qwe12345!'
        },
        array: [1,2,3,4,5,6,7,8,9,0]
    },
    clickMe(){
        this.setData({
            obj:{
                username : '张三',
                password : '123456'
            }
        });
    },
    //options(Object)
    onLoad: function(options){
        console.log("onLoad方法执行了-from index");
    },
    onReady: function(){
        console.log("onReady方法执行了-from index");
    },
    onShow: function(){
        console.log("onShow方法执行了-from index");
    },
    onHide: function(){
        console.log("onHide方法执行了-from index");
    },
    onUnload: function(){
        console.log("onUnload方法执行了-from index");
    },
    onPullDownRefresh: function(){
        console.log("onPullDownRefresh方法执行了-from index");
    },
    onReachBottom: function(){
        console.log("onReachBottom方法执行了-from index");
    },
    onShareAppMessage: function(){
        console.log("onShareAppMessage方法执行了-from index");
    },
    onPageScroll: function(){
        console.log("onPageScroll方法执行了-from index");
    },
    //item(index,pagePath,text)
    onTabItemTap:function(item){

    }
});